

function initPage(baseInfoJson,basicInfo){
	var basePath = $("#basePath").val();
	
	$("select:not([data-address])").each(function(){
		$(this).append("<option value=''>---请选择---</option>");
		
	});
	
	$("select[data-type='129Select']").each(function(){
		var options = "";
		options+="<option value='1'>是</option>";
		options+="<option value='2'>否</option>";
		options+="<option value='9'>-</option>";
		$(this).append(options);
		$(this).change(function(){
	   		var eventObj = $(this);
	   		var nameObjName = eventObj.attr("name").replace("Code", "Name");
	   		
	   		if(eventObj.val()!=""){
	   			var name=eventObj.find("option:selected").text();
	   			eventObj.next("input[name='"+nameObjName+"']").val(name);
	   		}else{
	   			eventObj.next("input[name='"+nameObjName+"']").val("");
	   		}
	   });
	});
	$("select[data-type='operate1']").each(function(){
		var options = "";
		options+="<option value='1'>一、二代头孢菌素</option>";
		options+="<option value='2'>其他类抗菌药物</option>";
		options+="<option value='9'>-</option>";
		$(this).append(options);
		$(this).change(function(){
	   		var eventObj = $(this);
	   		var nameObjName = eventObj.attr("name").replace("Code", "Name");
	   		
	   		if(eventObj.val()!=""){
	   			var name=eventObj.find("option:selected").text();
	   			eventObj.next("input[name='"+nameObjName+"']").val(name);
	   		}else{
	   			eventObj.next("input[name='"+nameObjName+"']").val("");
	   		}
	   });
	});
	
	$("select[data-type='operate2']").each(function(){
		var options = "";
		options+="<option value='1'>术前半小时</option>";
		options+="<option value='2'>术前1小时</option>";
		options+="<option value='3'>术前2小时</option>";
		options+="<option value='9'>-</option>";
		$(this).append(options);
		$(this).change(function(){
	   		var eventObj = $(this);
	   		var nameObjName = eventObj.attr("name").replace("Code", "Name");
	   		
	   		if(eventObj.val()!=""){
	   			var name=eventObj.find("option:selected").text();
	   			eventObj.next("input[name='"+nameObjName+"']").val(name);
	   		}else{
	   			eventObj.next("input[name='"+nameObjName+"']").val("");
	   		}
	   });
	});
	
	$("select[data-type='operate3']").each(function(){
		var options = "";
		options+="<option value='1'>术中出血量大于1500ml </option>";
		options+="<option value='2'>手术时间超过3小时</option>";
		options+="<option value='9'>-</option>";
		$(this).append(options);
		$(this).change(function(){
	   		var eventObj = $(this);
	   		var nameObjName = eventObj.attr("name").replace("Code", "Name");
	   		
	   		if(eventObj.val()!=""){
	   			var name=eventObj.find("option:selected").text();
	   			eventObj.next("input[name='"+nameObjName+"']").val(name);
	   		}else{
	   			eventObj.next("input[name='"+nameObjName+"']").val("");
	   		}
	   });
	});
	
	
	$("select[data-type='operate4']").each(function(){
		var options = "";
		options+="<option value='1'>小于24小时</option>";
		options+="<option value='2'>24-48小时</option>";
		options+="<option value='3'>48-72小时</option>";
		options+="<option value='4'>大于72小时</option>";
		options+="<option value='9'>-</option>";
		$(this).append(options);
		$(this).change(function(){
	   		var eventObj = $(this);
	   		var nameObjName = eventObj.attr("name").replace("Code", "Name");
	   		
	   		if(eventObj.val()!=""){
	   			var name=eventObj.find("option:selected").text();
	   			eventObj.next("input[name='"+nameObjName+"']").val(name);
	   		}else{
	   			eventObj.next("input[name='"+nameObjName+"']").val("");
	   		}
	   });
	});
}


